<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        --bg: url("./img/landscape.jpg") no-repeat center;
        background: var(--bg);
        background-size: 100% 100%;
        height: 100vh;
        width: 100vw;
        font-family: "微软雅黑", sans-serif;
      }
      .modal {
        background: rgba(0, 0, 0, 0.7);
        width: 100%;
        height: 100%;
      }
      .modal h1 {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12vw;
        /* 文字描边 , 有兼容问题 */
        -webkit-text-stroke: 1px #fff;
        background: var(--bg);
        /* 覆盖范围:在文字上 */
        background-clip: text;
        -webkit-background-clip: text;
        /* 设置文字颜色透明 */
        color: transparent;
      }
    </style>
  </head>
  <body>
    <div class="modal">
      <h1>landscape</h1>
    </div>
  </body>
</html>
